﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Forms.Rapor.YeniYapi
{
    public partial class KapamaRaporu : XForm
    {
        public KapamaRaporu()
        {
            InitializeComponent();
        }

        private void KapamaRaporu_Load(object sender, EventArgs e)
        {
            gvKapamaRaporu.Init("GetKapamaRaporu");
            gvKapamaRaporu.BestFitColumns();
            gvKapamaRaporu.AddSummary();
            gvKapamaRaporu.AddSummary("SiparisAdedi", "YuklenenAdet", "KesilenAdet", "Kalan", "Yuklenen2Kalite");
            gvKapamaRaporu.MakeReadOnly();

            gvKapamaRaporu.SetFilterTypeToCheckedList("Hafta", "Ay", "Yil", "DosyaYili", "TakimLideri", "AtelyeId", "CustomerId", "FoyNo", "YuklemeYil", "YuklemeAy");
            gvKapamaRaporu.MakeColumnInvisible("PlanlamaLinesId", "YuklemeYil", "YuklemeAy");

            gvKapamaRaporu.SetCaptions("CustomerId:Musteri");

        }
    }
}